
@import '../style/common.less';
html,body{
    background-color: #fafafa;
    .car{
        height: 100%;
        // 购物车有内容样式
        .shopCar-main{
            padding: 6px;
            background-color: @backgroundcolor;
            width: 100%;
            height: 100%;
            flex: 1;
            overflow-x: hidden;
            // 送货地址
            .shipping-address{
                margin-top: .3rem;
                width: 100%;
                background-color: @blockbdcolor;
                display: flex;
                justify-content: flex-start;
                padding: 10px 15px;
                .position{
                    font-size: 1rem;
                }
                .sp-address{
                    flex: 1;
                    font-size: .75rem;
                    margin-left: .8rem;
                    color: #bebebe;
                    .delv{
                        line-height: 1rem;
                    }
                    .name-adress {
                        margin-top: 10px;
                        .namePhone{
                            margin-top: 10px;
                            span:nth-child(2){
                                margin-left: 2rem;
                            }
                        }
                        .detAds{
                            margin-top: 10px;
                            p{
                                width:15rem;
                                overflow: hidden;
                                white-space: nowrap;
                                text-overflow: ellipsis; 
                            }
                        }
                    }
                    
                }
                .arrow{
                    font-size: 2rem;
                    margin-top: .9rem;
                    color: #bebebe;
                
                }
        }
        // 订单详情
        .order-list{
            width: 100%;
            background-color: @blockbdcolor;
            margin-top: .3rem;
            padding: .8rem 1rem;
            margin-bottom: 2rem;
            .det{
                width: 100%;
                font-size: .8rem;
                line-height: 1.2rem;
                display: flex;
                justify-items: flex-start;
                .promotions{
                    margin-left: .5rem;
                    color: red;
                    flex: 1;
                    display: flex;
                    justify-items: flex-start;
                    span:nth-child(1){
                        display: block;
                        border: 1px solid red;
                        width: 2.2rem;
                        height: 1.2rem;
                        border-radius: .3rem;
                        text-align: center;
                    }
                    span:nth-child(2){
                        margin-left: .5rem;
                    }
                }
            }
            // 购物车有数据
            .list{
                margin-top: .5rem;
                .cont{
                   padding: 5px 0;
                   height: 6rem;
                //    display: flex;
                //    justify-content: start;
                //    align-items: center;
                   margin: 10px 0;
                    .van-checkbox{
                        width: 2rem;
                    }
                    .rightlist{
                        flex: 1;
                        height: 6rem;
                        display: flex;
                        justify-content: start;
                        align-items: center;
                        border-bottom: 1px solid #f6f6f6;
                        span{
                            display: block;
                        }
                        .cont-left{
                            height: 5rem;
                            width: 5rem;
                            img{
                                width: 5rem;
                                height: 5rem;
                            }
                        }
                        .cont-right{
                            padding: 10px;
                            flex: 1;
                            height: 5rem;
                            display: flex;
                            flex-direction: column;
                            justify-content: space-between;
                            .title{
                                height: 100%;
                                p{
                                    margin-top: 10px;
                                }
                            }
                            .pice{
                                height: 100%;
                                margin-top: 1rem;
                                display: flex;
                                justify-content: space-between;
                                align-items: center;
                                .pic{
                                    color: red;
                                    font-size: .9rem;
                                }
                                .car{
                                    width: 100px;
                                    height: 100%;
                                    display: flex;
                                    justify-content: space-evenly;
                                    align-items: center;
                                    font-size: .8rem;
                                    span{
                                        display: block;
                                        width: 1.2rem;
                                        height: 1.2rem;
                                        border-radius: 1rem;
                                        font-size: .8rem;
                                        // background: linear-gradient(to bottom, #8ae7bb, #47c489);
                                        border: 1px solid gray;
                                        color: #47c489;
                                        text-align: center;
                                        line-height: 1rem;
                                    }
                                }
                            }
                        }
                        .van-swipe-cell__right{
                            
                            van-button {
                                height: 100%;
                            }
                        }
                    }
                   
                }
                
            }
            .van-submit-bar__bar{
                .van-submit-bar__button--danger{
                    background:linear-gradient(to right, #8ae7bb, #00b578)
                }
            }
        }
        }

        // 购物车无内容样式
        .shipNull-main{
            height: 100%;
            flex: 1;
            overflow-x: hidden;
            background-color: #fafafa;
            div{
                margin-top: 5rem;
                width: 100%;
                img{
                    width: 100%;
                    height: 100%;
                }
            }

            button{
                width: 7rem;
                height: 1.7rem;
                border: 2px solid #52cba2;
                border-radius: 1rem;
                font-size: .8rem;
                font-weight: 700;
                color: #52cba2;
                position: fixed;
                top: 65%;
                left: 50%;
                margin-left: -70px;
            }
            }
    }

    
    
    
}
